package cn.edu.scau.dormitory_management_system.service.impl;

import cn.edu.scau.dormitory_management_system.dao.MessageboardDao;
import cn.edu.scau.dormitory_management_system.entity.MessageboardEntity;
import cn.edu.scau.dormitory_management_system.service.MessageboardService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.web.bind.annotation.RequestBody;


@Service("messageboardService")
public class MessageboardServiceImpl extends ServiceImpl<MessageboardDao, MessageboardEntity> implements MessageboardService {

    @Override
    public boolean insertMessage(MessageboardEntity messageboardEntity) {
        return this.baseMapper.insert(messageboardEntity) > 0;
    }

    @Override
    public boolean deleteMessage(Integer meId) {
        return this.baseMapper.deleteById(meId)>0;
    }

}